<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
</head>

<body>
    <div class="pos">
        <div class="login">
            <form action="http://localhost:1314/doregister" method="POST">
                <input style="margin-top: 0;" type="text" name="tel" id="" placeholder="请输入您的手机号"><br>
                <input type="password" name="username" id="" placeholder="请输入密码"><br>
                <img src="http://localhost:1314/regi?id=112"alt="">
                <div class="clear"></div>
                <button class="loginbtn">注册</button>
            </form>
        </div>
    </div>
    <script>
        let img = document.querySelector('img');
        img.onclick = function(){
            let s = new Date().getTime();
            console.log(s);
            this.src = 'http://localhost:1314/regi?id='+s;
        }
    </script>
</body>
</html>